package com.study.ming.controller;

import com.study.ming.websocket.WebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yh
 * @date 2022/11/3 8:22
 **/
@Controller
public class SocketController {
    @Autowired
    WebSocketService webSocketService;

    @GetMapping("/2socket")
    public String send2socket(@RequestParam(required = false, defaultValue = "hello") String msg){
//        webSocketService.sendMsg();
        return null;
    }

}
